import { lazy } from 'react'
import { Routes, Route, Navigate } from 'react-router-dom'
import Home from '@/pages/Home'
import Park from '@/pages/Park'

const RoutesConfig = () => (
  <Routes>
    {/* redirect 重定向 */}
    <Route path="/" element={<Navigate to="/home" replace={true} />} />

    <Route path="/home" element={<Home />}></Route>
    <Route path="/park" element={<Park />}></Route>
  </Routes>
)

export default RoutesConfig
